Skip to content

docs(skills): a gated action guards its door only; lock the field an irreversible transition changes - #35310

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-35068-gated-action-field-lock
Nov 19, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-35068-gated-action-field-lock

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #35068
Fixes #35041
Fixes #34237

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-ai 技能新增一条常见陷阱「只给动作加了闸,没锁状态字段」,教作者把不可逆状态迁移写成「需确认的 script 动作 + 状态字段锁(readonly: true 约束所有非系统写;字段权限不给 editable 不约束 Modify All 持有者),并在动作上声明 requiredPermissions」;工具名解析阶梯补上第四个来源 MCP_FILE_TOOL_NAMES(docs 的 tools.mdx 同步);MCP prompts 段落写明 mcpPrompt: false 及 stdio 例外。
  • 为什么改:ai.requiresConfirmation 只守动作这一扇门,场景卡上代理被 428 拒后改用 update_record 直接把工单关了;按「三个问题 同意」不扩大闸门,改为教作者锁字段。另两张 p3 卡是同文件的过期文字。
  • 风险与回滚:纯技能文字与一行文档,不动任何代码与契约;回滚即 revert 本 PR。
  • 先看:skills/objectstack-ai/SKILL.md 的 Common Pitfalls 第 2 条(锁选项是否与实测一致);其次同文件 MCP prompts 段落;state-machines-and-approvals.md 只多一行指针。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs,预期 objectstack-ai/SKILL.md 6693 / 6801、state-machines-and-approvals.md 5936 / 5936,全绿。
  • 需要你做的:审阅后合并(skills/** 为 Tier H 受管面)。

What changes

#35068 — gated action plus a field lock. Scope 1 was measured before any text was written (below). skills/objectstack-ai/SKILL.md Common Pitfalls gains item 2, "Gating the action, not the state": ai.requiresConfirmation guards the action's own door only; an irreversible transition is a gated script action over a field a non-system write cannot set: readonly: true binds every non-system caller, while a field permission without editable binds only a caller no held set grants it (Modify All grants it); the body skips the caller's edit right, so the action declares requiredPermissions; a declarative operation: 'update' action and a flow action under runAs: 'user' write as the caller, so the lock stops them too; readonlyWhen and a state_machine rule bind the elevated body as well, so neither is the door, while a state_machine dead-end still makes the reached state final. Pitfall 1 now says the confirmation gate guards its door only. skills/objectstack-automation/references/state-machines-and-approvals.md carries one pointer line to it (taught once, in objectstack-ai, where the gate is taught; no restatement).

#35041 — the ladder's fourth source. The resolution ladder names four sources; item 4 is MCP_FILE_TOOL_NAMES (the pinned export in the same constants file, so the list cannot drift), resolved only for a skill MCP can offer (mcpPrompt not false). content/docs/ai/tools.mdx (the one ladder sentence, scope addition 6964629901) says the same.

#34237 — mcpPrompt in the MCP prompts paragraph. The paragraph names the optional key (false = in-product only, never offered over MCP on any connection, whatever the binding; absent or true = the binding rule), and the stdio sentence states the exception.

Scope 1 measurement (tree 3fb7025 + this branch, no code changed)

Writer static readonly: true readonlyWhen (TRUE) field permission without editable state_machine
script action body (ctx.api, elevated) LANDS STRIPPED bypassed enforced
raw data write as the caller (MCP update_record, REST, form) STRIPPED STRIPPED refused 403 unless a held set grants editable (Modify All does) enforced
declarative operation: 'update' action STRIPPED (writes as the caller) STRIPPED refused 403 enforced

Anchors:

  • The body runs elevated: packages/runtime/src/action-execution.ts:3901 (buildActionExecutionContext returns { ...ec, isSystem: true } with the 'action' mark).
  • The static strip is gated on the context: packages/objectql/src/engine-update.ts:1411 (staticReadonlyStripRuns = !opCtx.context?.isSystem) and :1494.
  • The conditional strip runs for every caller, isSystem included: packages/objectql/src/engine-update.ts:1476; the comment at :1460-1467 says isSystem "is still NOT an exemption here".
  • Field-permission writes: the bypass is packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts:695 and the 403 is :1662.
  • The declarative update writes as the caller: packages/runtime/src/action-execution.ts:4883 (callData('update', …, ec), the comment above it reads "⛔ ec, never buildActionExecutionContext(ec)").
  • The state machine is skipped only on seed replay or an explicit flag: packages/objectql/src/engine-top-level.ts:4274-4275 (shouldSkipStateMachine).
  • The same table is already measured in the header of packages/lint/src/validate-readonly-action-writes.ts.

Result: the action body's own write to a readonly: true field is KEPT and its write to a readonlyWhen-locked field is STRIPPED. So the lock that binds every non-system caller is readonly: true; a field permission without editable does not bind a Modify All holder; readonlyWhen is not the door. A state_machine rule binds every writer: it makes the state final, and it cannot be the door.

Tests

Text-only change; no committed test (the measurement used existing pins, run here).

Scope 1 pins — objectql, 3 files, 25 tests passed

pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/engine-readonly-update-strip-system-gate.test.ts src/engine-readonly-when-derived-writes.test.ts src/engine-repo-execute-elevation.test.ts, after building the objectql dependency closure. Output: Test Files 3 passed (3), Tests 25 passed (25), os-verify-lock: VERDICT command-exit 0.

  • engine-readonly-update-strip-system-gate.test.ts: a caller-supplied readonly value lands exactly when isSystem is set.
  • engine-readonly-when-derived-writes.test.ts, "LOCK 2 — isSystem does NOT exempt a caller-supplied value".
  • engine-repo-execute-elevation.test.ts, "a readonly-field write through ctx.api LANDS, matching REST/MCP".

Acceptance notes

  • Line budget, PAID DOWN FIRST in the same files. skills/objectstack-ai/SKILL.md: the "Default for metadata apps" paragraph is cut, because it restated the App AI Blueprint table above it. The ladder item 1's ADR-0109 sentence is cut, because it restated Tool metadata. state-machines-and-approvals.md: three restatements are cut. The [] dead-end sentence restated the code comment final — no outgoing transitions; ", one per field" restated One rule per field; and "Do not carry the record.x habit…" restated the sentence before it. Fix round (af46d3b, review 6999708959 S1/S2): +42 tokens, paid first by cutting pitfall 1's retired-tool sentence (taught under Tool metadata) and folding the agents-are-internal lead into the skills-entry sentence; net 6680 -> 6693 / 6801.
  • Neither ratchet row moves, so no ceiling is raised and the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B) is not invoked for a raise. The remainder fits under the existing ceilings.
  • Scope 3 items (the 428 refusal text; the scenario build prompt) are other cards and are not touched here.
  • pnpm check:dual-build-cjs-loads NOT MEASURED locally (exit 3, PREREQUISITE NOT MET: reads every package's dist/); CI runs it.

Verification

Readings at head 7611288 (tree objectstack-ai/objectstack).

Skills size, before (origin/main 3fb7025) and after
File lines tokens / ceiling
skills/objectstack-ai/SKILL.md 443 → 462 6365 → 6693 / 6801
skills/objectstack-automation/references/state-machines-and-approvals.md 392 → 392 5936 → 5936 / 5936 (23744 → 23743 bytes)
all skills/*/SKILL.md (lines) 4835 → 4854
bundle total (whole shipped tree, tokens) 270968 → 271283
Local gate subset — 74 derived families, 73 exit 0, 1 NOT MEASURED

The list was derived with node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack against merge base 3fb7025, which gave 74 families. Every family ran, and the exit code was captured before any pipe.

  • 73 families exit 0. Among them: check:skills-token-ratchet, check:skill-links, check:skill-refs, check:skill-docs, check:skill-served-sections, check:skill-examples (345 prose examples type-check), check:doc-authoring, check:nul-bytes, check:pm-skill-id-lint, check:skill-identifier-liveness, check:docs and check:docs-spec-enumerations.
  • check:skill-examples and check:lean-entry-closure exited 3 on the first pass, because their built inputs were missing. Both exited 0 after client-react and objectql were built.
  • check:dual-build-cjs-loads exited 3, PREREQUISITE NOT MET.
  • The reconciliation dispatch-gates --ran printed: 74 derived famil(ies) accounted for — 73 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).
  • node scripts/pm/overlap-check.mjs --branch=HEAD printed VERDICT clean exit 0. It merges cleanly with origin/main, with chore: version packages #35129 (which shares the ai SKILL.md) and with docs(skills): teach the fault edge on a write after an approval decision and the RESUME_FAILED refusal members #35002 (which shares the state-machines file).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7

…irreversible transition changes

objectstack-ai Common Pitfalls teaches the gated script action plus a
readonly or field-permission lock on the state field, and why readonlyWhen
and a state_machine rule cannot be the door. The tool-name ladder names
MCP_FILE_TOOL_NAMES as its fourth source (here and in content/docs/ai/tools.mdx),
and the MCP prompts paragraph names mcpPrompt and the stdio exception.
state-machines-and-approvals.md points to the pitfall; restatement cut in
both files to pay for it.

Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 761128865fe9c1886b7e849e38c1ae323f2a6fed
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md + none
Security-touching: yes

Rules face, PR #35310 (Fixes #35068, riders #35041 and #34237). Read: the three cards with every comment (claim 6998681086, dev report 6999131416), the PR body and file list, the net diff against main (merge base 3fb7025c2), the cited code at this head through git show, and the 51 check-runs on this head. Nothing was built or run. The diff's two other paths (.changeset/35068-gated-action-field-lock.md, content/docs/ai/tools.mdx) are prose faces: read for agreement, the lane seat's ACCEPT.

The security line above reads yes because pitfall 2 teaches write protection: the identity a write runs under, the static read-only strip, field permissions and their 403. The seat adopting this record adds the security label.

① Derived judgments

No accept set and no published surface moves: served skill text, one docs sentence, one changeset.

The dev's premises, each read in code at this head:

  • A script action body writes as the system identity, so its write to a static readonly field is kept — right. packages/runtime/src/action-execution.ts:3899-3902 (buildActionExecutionContext returns the caller's envelope with isSystem: true and the 'action' mark). The static strip is gated on the context at packages/objectql/src/engine-update.ts:1411 and runs at :1494-1518; the predicate-update path has the same gate at :1841 and :1909, and the create path at packages/objectql/src/engine-insert.ts:864 and :938-946. All three action dispatch paths elevate (packages/objectql/src/engine-repo-execute-elevation.test.ts, header, ObjectRepository.execute() dispatches an action with neither api nor executionContext — a readonly write LANDS on the REST/MCP paths and is silently stripped on that one #13866).
  • A readonlyWhen-locked field is stripped for every caller — right. engine-update.ts:1476 sits outside any isSystem test; the comment at :1459-1468 says the system context is not an exemption there. The lock's record is the prior row overlaid with the payload (packages/objectql/src/validation/rule-validator.ts:900-915).
  • A field permission without editable lets the body through and refuses a non-system write 403 — right as far as it goes. packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts:695-697 (system bypass), :1645-1681 (the 403). It is not the whole rule: see S1.
  • A declarative operation: 'update' action writes as the caller — right. action-execution.ts:4870-4883 (callData('update', …, ec), never the elevated context).
  • A flow action under runAs: 'user' writes as the caller — right. packages/spec/src/automation/flow.zod.ts:1278-1280 (default user); packages/services/service-automation/src/runtime-identity.ts:447-459 (only system sets isSystem).
  • A state_machine rule is judged on every identity — right. engine-update.ts:1669 evaluates the rules with no identity test; the only skip is packages/objectql/src/engine-top-level.ts:4274-4276 (seedReplay, skipStateMachine), both server-set (packages/core/src/security/assemble-execution-context.ts:94-97) and refused for every signed-in caller at the import doors (packages/rest/src/import-prepare.ts:431-437).

The card's Scope 2 listed readonlyWhen and state_machine among the locks; the PR drops both as the door on the strength of Scope 1. Right: the card ordered that measurement first and made the list depend on it.

Write paths walked for the readonly: true arm, each a non-system write and so stripped: REST and MCP update_record and create_record, a predicate update, a signed-in caller's import (packages/core/src/utils/import-runner.ts:1125-1136 adds no elevation; the historical opt-out is refused), the declarative update action, a runAs: 'user' flow. No path a user or an agent reaches writes that field around the gated action. The field-permission arm is narrower: S1.

Riders:

Docs page: content/docs/ai/tools.mdx:193-195 says the same ladder (three sources in order, a fourth for a skill MCP can offer) and names MCP_FILE_TOOL_NAMES in @objectstack/spec/system, which exports it (packages/spec/src/system/index.ts:169, constants/index.ts:16). It matches.

Ratchet: scripts/check-skills-token-ratchet.mjs is not in the diff, so no row moves. skills/objectstack-ai/SKILL.md is 26740 bytes less its 20-byte version line: 6680 against 6801, headroom 121. state-machines-and-approvals.md is 23743 bytes: 5936 against 5936, headroom 0, one byte of slack. Both readings agree with the dev's.

Cuts paid for the budget, each still taught: the "Default for metadata apps" paragraph (the default path is the heading at SKILL.md:138 and ladder item 3); the ADR-0109 sentence of ladder item 1 (SKILL.md:288-295); in the automation reference the [] dead-end sentence (the example's own comment at :31, and the unlisted-from note at :52-54), ", one per field" (the bold lead of that note) and the record.x habit sentence (the sentence before it).

② Semver level

'@objectstack/skills': patch — right: served skill text only, the level every sibling skills changeset on this head uses. The docs page belongs to no published package. No ! in the title. Clause-②: no — right: no schema, export or accept set moves, and nothing a consumer could author is refused or newly accepted. Metadata-protocol: none — right: no metadata key is touched. Check Changeset is success on this head.

③ Boundary flags

  • open_questions is empty. The dev's deviations (model-free commit trailer, no labels sent, docs(skills): teach the fault edge on a write after an approval decision and the RESUME_FAILED refusal members #35002 no longer touching the ai skill) need no ruling here.
  • The dev's out-of-scope note (a readonlyWhen lock keyed on the target state also strips the transition into it) is right on the code read: the lock's record holds the incoming value (rule-validator.ts:900-915, :1245-1251). It merits a card. No lint rule names the spelling, and the data skill (skills/objectstack-data/SKILL.md:207-217) and the docs page (content/docs/data-modeling/fields.mdx:597-673) show cross-field examples only, so an author who wants "frozen once closed" on the state field itself has no text to steer by. Proposed: p3, domain:skills with a lint half, verify first on a real engine, then teach previous.FIELD for a freeze after entry and consider an advisory lint for a readonlyWhen that reads its own field through record.
  • A security item is with the seat. It is not introduced by this diff and its mechanism is not written here.
  • Landing order: open draft docs(skills): teach the fault edge on a write after an approval decision and the RESUME_FAILED refusal members #35002 edits state-machines-and-approvals.md too (+7 −11). With no headroom on that row, whichever lands second re-measures it.
  • SQL push-down: no code in the diff.
  • PR author is objectstack-fleet[bot]; no other login to name.
  • Check-runs on this head: 51 completed, 34 success, 17 skipped, none red, none running. Among the green: Check Changeset, Governed Surface Queue Guard, PR-body guards, every Lint job, every Type Check job, Build Docs, Check Documentation Links, Test Core, Dogfood Regression Gate.

④ Design judgment

skills/objectstack-ai/SKILL.md

The ladder, the MCP prompts paragraph and pitfall 1's parenthesis hold against the code in ①. Pitfall 2 holds sentence by sentence against the code in ①, and its readonly: true arm survived every write path tried against it. Two gaps let a reader build the pattern as written and leave the transition open. No must-fix.

S1 (should-fix) — the field-permission arm does not bind a Modify All holder, and the pitfall does not say so.
The pitfall offers it beside readonly: true as a lock "a non-system write cannot set", qualified by "any set granting it wins". Field permissions union most-permissively, and a set holding modifyAllRecords on the object votes the edit on every field of it (packages/plugins/plugin-security/src/permission-evaluator.ts:550-590; packages/core/src/security/effective-object-permissions.ts:1056-1071; content/docs/permissions/field-level-security.mdx:195-207). A field no held set names is unrestricted (packages/plugins/plugin-security/src/field-masker.ts:424-435), so the arm also needs a declared entry. For an administrator the arm is therefore no lock: their agent, refused at the gated action, completes the transition with update_record, which is the trap this pitfall exists to close. The pointer target (skills/objectstack-data/rules/security.md:202-229) names another set's editable: true as the winner and never Modify All. Fix in the clause: name a Modify All set as such a grant, and say that readonly: true is the arm that binds every non-system caller. The row has 121 tokens of headroom.

S2 (should-fix) — the recipe moves the write to an elevated body and names no gate on who may run it.
An action that declares no requiredPermissions is ungated at its doors (action-execution.ts:1054-1066). Its subject is loaded in the caller's read scope (:4292-4304), and the body then writes as the system identity (:3899-3902), past the object edit grant, sharing and field permissions the caller's own write answered to (security-plugin-authz-middleware.ts:695-697). Built as written, every caller who can read the record can make the irreversible transition through the action; REST /actions asks a person for no confirmation (action-execution.ts:3087-3090). That includes a caller the data door refused before the lock went on. The remedy is already named in this file at :306 (action.requiredPermissions, ADR-0066 D4) but is not tied to the recipe. Fix: one clause saying who may run the action is stated on it, because the body does not check the caller's edit right.

N1 (nit) — both arms take every direct write off the state field, so each other transition on it also needs an elevated writer (an action body, or a runAs: 'system' flow; os validate already reds a runAs: 'user' update_record on a readonly field). "A field a non-system write cannot set" says it literally; a builder can still miss it. For the #34887 lane: the scenario card's other status probes (docs/qa/scenarios/service_desk.json:849-858 expects a validation refusal on a raw status update) should be re-read against the lock before the build prompt asks for it.

N2 (nit) — "final for every writer" is true of every identity the rule judges; the two skips are server-set and held by the system principal alone (①). Accepted wording.

N3 (nit) — ladder item 4's "(same file)" means platform-tool-names.ts, named two items up, while the section's lead names the lint file. The constant is reachable from either; nothing breaks.

N4 (nit) — no eval pins pitfall 2 (skills/objectstack-ai/evals/skills-tools-knowledge.json cases 7 and 8 cover the confirmation gate only). A follow-up eval would hold the recipe.

N5 (nit) — out of this diff, for a data-skill follow-up: the pointer target skills/objectstack-data/SKILL.md:218-224 lists the exempt system writers without action bodies, and lists imports among them although a signed-in caller's import is a non-system write and is stripped.

skills/objectstack-automation/references/state-machines-and-approvals.md

The pointer line (:57-58) agrees with pitfall 2 and restates nothing. The three cuts remove restatements only (①). No finding.

S1 and S2 are open on this head and earn a delta read of their fix; the five nits are left as accepted deviations or follow-up cards.

Implemented-by: claude/issue-35068-gated-action-field-lock
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ

VERDICT: PASS

…and asks for requiredPermissions on the gated action

readonly: true is the arm that binds every non-system caller; a field
permission without editable binds only a caller no held set grants it, and
Modify All grants it. The elevated body skips the caller's edit right, so
the gated action declares requiredPermissions. Paid down in the same file:
pitfall 1's retired-tool sentence (taught under Tool metadata) and the
duplicated agents-are-internal lead.

Claude-Session: https://claude.ai/code/session_01Utp6CazXu8zyYD5PC6J2u7
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: af46d3bb112023906010034d8e84222f09274f6c
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-automation/references/state-machines-and-approvals.md + none
Security-touching: yes

Delta round. Round 1 is record 6999708959 on head 761128865fe9c1886b7e849e38c1ae323f2a6fed: two graded findings open (S1, S2), five nits. This record reads the one commit since, af46d3bb11 (2 files, +11/−11: skills/objectstack-ai/SKILL.md and the changeset), and stands on round 1 for everything that commit does not touch.

Read: the delta diff and its commit subject; the three changed regions of skills/objectstack-ai/SKILL.md whole at this head (:20-41, :284-309, :328-361); all eight cases of skills/objectstack-ai/evals/skills-tools-knowledge.json; the code the two new sentences describe; the PR body as it stands now; the PR diff against main (tip a998964db2, 5 commits past the merge base 3fb7025c2); the PR and card threads since round 1 (no new comment). File sizes were read off git blobs. Nothing was built or run.

Check-runs on this head, read at 2026-11-19T04:37Z, CI still running: 48 runs, 21 success, 17 skipped, none red, 10 in progress. PENDING: Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · ESLint, Build Docs, Type Check · consumer gates, Type Check · source gates, Test Core (1/10), Test Core (2/10), Test Core (3/10). Not yet reported on this head, and green on the round 1 head: the roll-ups Lint & Repo Gates, Test Core and TypeScript Type Check. Already green here: Check Changeset, Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Build Core, Dogfood Regression Gate, Spec property liveness, Lint · PM dispatch-gates, the three scoped Lint jobs, Type Check · workspace, Type Check · debt ledger.

① Derived judgments

No accept set and no published surface moves; the delta is skill text and the changeset's matching sentence. No code, no script, no docs page and no automation file is in it.

  • The S1 sentence (SKILL.md:346-349) — right. "readonly: true binds every non-system caller": the static strip is gated on the context alone (packages/objectql/src/engine-update.ts:1411, :1494-1518, :1841, :1909; packages/objectql/src/engine-insert.ts:864, :938-946). "A field permission without editable … binds only a caller no held set grants it, and Modify All grants it": the merge is most-permissive (packages/plugins/plugin-security/src/permission-evaluator.ts:573-575) and the super-user vote then sets the edit per field (:579-587; packages/core/src/security/effective-object-permissions.ts:1056-1071). "So an admin's agent still writes the field" follows.
  • The S2 sentence (SKILL.md:349-351) — right. An action that declares no requiredPermissions is ungated (packages/runtime/src/action-execution.ts:1054-1066), the gate is asked once for every door (packages/runtime/src/action-dispatch.ts:520-524), and the body writes past the caller's edit checks (action-execution.ts:3899-3902; packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts:695-697). The key is the action's own (packages/spec/src/ui/action.zod.ts:1275-1291, ADR-0066 D4).
  • Cut A, pitfall 1's sentence on the tool-level requiresConfirmation (⚠️ … was REMOVED (ADR-0033 §2; retired above)): a restatement, no instruction lost. SKILL.md:297-298 still says a retired ToolSchema key is a parse error and :302-304 still lists requiresConfirmation among the retired keys, each rejection carrying its replacement. Pitfall 1 still puts the gate on the action (:337-338) and keeps "There is no requireApprovalFor field" (:340).
  • Cut B, the lead's "(☁️ ask / build; …)" folded into the skills-entry sentence (:39-41): a restatement, no instruction lost. The edition note two paragraphs up names the ask / build agents as the cloud runtime (:22-24), the front matter says agents are platform-internal (:7-9), and the reference section carries both names and the mark (:375-397). The folded sentence still says agents are platform-internal and that skills are how the platform is extended.
  • Evals: no must_contain or must_not_contain string of the eight cases names a phrase either cut removed. Case 1 forbids defineAgent( and case 5 expects the skills route: both still rest on :39-41 and :375-382. Cases 7 and 8 are about ai.requiresConfirmation on the action, which no cut touches. No case asserts the tool-level retirement sentence.
  • The readonlyWhen and state_machine sentences (:353-357) are byte-identical to round 1.
  • Ratchet — right. skills/objectstack-ai/SKILL.md is 26792 bytes less its 20-byte version line: 6693 against 6801, headroom 108 (round 1: 26740 bytes, 6680). state-machines-and-approvals.md is unchanged at 23743 bytes, 5936 against 5936. scripts/check-skills-token-ratchet.mjs is not in the PR diff. The gate's own run (Lint · repo & tooling gates) is pending on this head.
  • On main's new tip: neither skill file moved since the merge base, and main's docs(skills): scope "Declaring is a demand" to what os serve does #35294 edits the ratchet file on the platform row only, so both rows read 6801 and 5936 there too. None of main's 5 commits touches the code cited in either round.

② Semver level

Unchanged and still right: '@objectstack/skills': patch, Clause-②: no, Metadata-protocol: none, on the PR body and the changeset. The changeset's one edited sentence says what SKILL.md:346-351 says. Check Changeset is green on this head.

③ Boundary flags

  • Dev claim "S1 fixed at :346-349": confirmed, ① first bullet.
  • Dev claim "S2 fixed at :349-351": confirmed, ① second bullet.
  • Dev claim "+42 tokens, 29 paid by two same-file restatements, net 6680 to 6693": confirmed on the net (+52 bytes, +13); both cuts are same-file restatement, ① third and fourth bullets.
  • Dev claim "the readonlyWhen wording is unchanged": confirmed.
  • Round 1 nits N1 to N5: none taken, none touched by this commit. They stand as accepted deviations or follow-up cards, as round 1 left them.
  • The security line above reads yes because the delta's own hunk teaches who a field lock binds and which capability gate admits an action. The seat adopting this record adds the security label.
  • A security item is with the seat. Unchanged from round 1: not introduced by this PR, not touched by this delta, and its mechanism is not written here.
  • Round 1's recommendation of a card for the dev's out-of-scope note stands.
  • Landing order, unchanged: open draft docs(skills): teach the fault edge on a write after an approval decision and the RESUME_FAILED refusal members #35002 edits state-machines-and-approvals.md, whose row has no headroom; whichever lands second re-measures it.
  • SQL push-down: no code in the diff.

④ Design judgment

S1: closed
S2: closed

No must-fix and no should-fix on this head.

skills/objectstack-ai/SKILL.md — holds. A reader of pitfall 2 now learns which lock binds every non-system caller, that the field-permission lock leaves a Modify All holder free to write the field, and that the elevated body needs its own statement of who may run it. The two ways round 1 found to reach the transition around the gate are each named beside their remedy. The two cuts remove restatement only (①). The sentences the delta did not touch were judged in round 1.

skills/objectstack-automation/references/state-machines-and-approvals.md — not in the delta; round 1's reading stands.

Nits (none blocks, none needs a push):

  • D1 — pitfall 2 no longer points at objectstack-data rules/security.md for the field-permission entry (round 1's head did), and names Modify All without its key. The data skill's own routing reaches both: the entry shape at rules/security.md:204 and modifyAllRecords at :24.
  • D2 — PR body, for the lane seat: the quick-verify line still expects 6680 / 6801 (the tree reads 6693), and the "Readings at head" line and the bundle total are the round 1 head's.

Implemented-by: claude/issue-35068-gated-action-field-lock
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

维护者速读

席位核对 — ACCEPT · repo:objectstack#5 · head af46d3bb112023906010034d8e84222f09274f6c · 2026-11-19T04:41Z

@objectstack-fleet objectstack-fleet Bot added pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue security labels Nov 19, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 19, 2026 05:20
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 475ae46 Nov 19, 2026
62 of 63 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35068-gated-action-field-lock branch November 19, 2026 05:38
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants